From 2a5a94b2606ffae08fce634e61c533830f54c3ec Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Nov 2016 15:40:21 -0500 Subject: [PATCH] css: Improve spec compliance of the radial gradient parser The spec says: "If is omitted, the ending shape defaults to a circle if the is a single , and to an ellipse otherwise." Make it so. --- gtk/gtkcssimageradial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkcssimageradial.c b/gtk/gtkcssimageradial.c index 1d4b99bc18..e22d9b805b 100644 --- a/gtk/gtkcssimageradial.c +++ b/gtk/gtkcssimageradial.c @@ -323,10 +323,10 @@ gtk_css_image_radial_parse (GtkCssImage *image, if (!has_shape) { - if (radial->sizes[0] && radial->sizes[1]) - radial->circle = FALSE; - else + if (radial->sizes[0] && !radial->sizes[1]) radial->circle = TRUE; + else + radial->circle = FALSE; } if (has_shape && radial->circle) -- 2.30.2